//
//  BankDetailsViewController.m
//  HYApp
//
//  Created by Jianbo Cai on 2020/9/2.
//  Copyright © 2020 Unidax. All rights reserved.
//

#import "BankDetailsViewController.h"

@interface BankDetailsViewController ()

@property (weak, nonatomic) IBOutlet UILabel *status;
@property (weak, nonatomic) IBOutlet UILabel *accountType;
@property (weak, nonatomic) IBOutlet UILabel *country;
@property (weak, nonatomic) IBOutlet UILabel *holderName;
@property (weak, nonatomic) IBOutlet UILabel *accountNumber;
@property (weak, nonatomic) IBOutlet UILabel *bankName;
@property (weak, nonatomic) IBOutlet UILabel *bankDetail;


@property (unsafe_unretained, nonatomic) IBOutlet UILabel *statusTitleLable;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *accountTypeTitleLab;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *countryTitleLab;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *accountHolderNameTitleName;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *accountNumberTitleLable;


@property (unsafe_unretained, nonatomic) IBOutlet UILabel *bankNameTitleLable;

@property (unsafe_unretained, nonatomic) IBOutlet UILabel *bankDetailTitleLable;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightLayout;

@end

@implementation BankDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = JFMainLocalizedString(@"myProfile.Detail");
    
    self.status.text = [self.entity.verification_status uppercaseString];
    self.accountType.text = self.entity.datas.account_type;
    self.country.text = self.entity.datas.country;
    self.holderName.text = self.entity.datas.account_name;
    self.accountNumber.text = self.entity.datas.account_number;
    self.bankName.text = self.entity.datas.bank_name;
    self.bankDetail.text = self.entity.datas.bank_detail;
    
    self.statusTitleLable.text = JFMainLocalizedString(@"bank.status");
    self.accountTypeTitleLab.text = JFMainLocalizedString(@"bank.account-type");
    self.countryTitleLab.text = JFMainLocalizedString(@"bank.country");
    self.accountHolderNameTitleName.text = JFMainLocalizedString(@"bank.holderName");
    self.accountNumberTitleLable.text = JFMainLocalizedString(@"bank.account-number");
    self.bankNameTitleLable.text = JFMainLocalizedString(@"bank.bank-name");
    self.bankDetailTitleLable.text = JFMainLocalizedString(@"bank.details");
    
    
    
    
    self.heightLayout.constant = [self.bankDetail.text boundingRectWithSize:CGSizeMake(AWSCREEN_WIDTH - 60, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:self.bankDetail.font} context:nil].size.height + 295;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
